import logging
import yagmail

def log_set():
    logging.basicConfig(level=logging.DEBUG, format='%(message)s', filename='log.txt', filemode='w')

def send(file):
    em=yagmail.SMTP(user='2834326498@qq.com',password='ersutdeapgbedgej',host='smtp.qq.com')
    em.send(to='2834326498@qq.com',subject='六',contents='请查收',attachments=file)



